package main

import (
	"fmt"
)

func tryRecover() {
	defer func() {
		err := recover()
		if err, ok := err.(error); ok {
			fmt.Println(err)
		} else {
			panic(err)
		}
	}()
	b := 0
	a := 5 / b
	fmt.Println(a)
}
func main() {
	tryDefer()
}
